package com.pixels.graphics;

import com.pixels.Game;

public class Render {
	public final int width;
	public final int height;
	public final int[] pixels;
	Drawer draw;
	
	public Render(int width, int height) {
		this.width = width;
		this.height = height;
		pixels = new int[width * height];
		draw = new Drawer(pixels, width, height);
	}

	public void draw(Game game) {
		draw.clearFrame();
		game.draw(draw);
	}
}
